var util= require('util');

var OAuth= require('oauth').OAuth;

var consumer_key = 'uD1gI1xqoMwh7PiuIvMVDg';
var consumer_secret = 'QgAyUxndTbZZ0SlLOSTSVF4SjExLXZELCUwHz8BrQ';

var oa= new OAuth("https://api.twitter.com/oauth/request_token",
                  "https://api.twitter.com/oauth/access_token",
                  consumer_key,
                  consumer_secret,
                  "1.0",
                  null,
                  "HMAC-SHA1");

oa.getOAuthRequestToken(function(error, oauth_token, oauth_token_secret, results){
	if(error) util.puts('error :' + error);
	else { 
		util.puts('oauth_token: ' + oauth_token);
		util.puts('oauth_token_secret: ' + oauth_token_secret);
		util.puts('requestoken results: ' + util.inspect(results));
	}
});